#include <iostream>

using namespace std;

int main()
{
    int ival = 1024;
    int *pi = &ival;
    int &rval = ival;

    cout << "Ival is " << ival << endl
         << "Pi is " << *pi << endl
         << "Rval is " << rval << endl;

    int jval = 4096;
    rval = jval;

    cout << "Ival is " << ival << endl
         << "Pi is " << *pi << endl
         << "Rval is " << rval << endl;


    return 0;
}